@import "./iconfont//index.css";
@import "./animate.scss";
@import "./equip.scss";
body {
  overflow: hidden;
  position: relative;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ewg-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ewg-ellipsis-flex {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
// 滚动条美化
.beautify-scroll {
  &:hover::-webkit-scrollbar-thumb {
    background-color: rgba($color: #ffffff, $alpha: 0.2);
  }
}
.beautify-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
/*滚动条里面小方块样式*/
.beautify-scroll::-webkit-scrollbar-thumb {
  border-radius: 100px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  // background-image: url("/img/sys/scroll.png");
  // background-repeat: no-repeat;
  // background-size: 100% 100%;
  &:hover {
    background-color: rgba($color: #ffffff, $alpha: 0.5);
  }
}
/*滚动条里面轨道样式*/
.beautify-scroll::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.1);
}
// 滚动元素本体

//
.h100 {
  height: 100%;
}

// 无法选中
.diselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.dangerShadow {
  animation: dangerShadowDone 1s infinite;
}

// 点击缩放动画
.clickScale {
  cursor: pointer;
  transform: scale(1);
  &:hover {
    transform: scale(1.1);
  }
  &:active {
    transform: scale(1);
  }
}

// 按钮

[class^="button-"] {
  border: 2px solid $--color-white;
  background: $--color-black-half-quarter;
  color: $--color-white;
  border-radius: $--border-radius;
  display: inline-block;
  padding: 5px 10px;
  margin-left: 10px;
  cursor: pointer;
  &:first-of-type {
    margin-left: 0;
  }
  &:hover {
    transform: scale(1.1);
  }
  &:active {
    transform: scale(1);
  }
}

[class^="text-btn-"] {
  display: inline-block;
  color:$--color-white-quarter;
  margin-left: 10px;
  cursor: pointer;
  &:first-of-type {
    margin-left: 0;
  }
  &:hover {
    color: $--color-white;
  }
  &:active {
    color:$--color-white-half-quarter;
  }
}

// 手指
.pointer {
  cursor: pointer;
}
